/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.service.impl;

import com.click.app.dao.PantDetailDao;
import com.click.app.model.Employee;
import com.click.app.model.PantDetail;
import com.click.app.model.ProcessDressmaker;
import com.click.app.service.PantDetailManager;
import java.util.Date;
import java.util.List;

/**
 *
 * @author ronald
 */
public class PantDetailManagerImpl extends GenericManagerImpl<PantDetail, Long>
                                          implements PantDetailManager {
    PantDetailDao pantDetailDao;

    public PantDetailManagerImpl(PantDetailDao pantDetailDao) {
        super(pantDetailDao);
        this.pantDetailDao = pantDetailDao;
    }

    public List<PantDetail> findByCutProcess(ProcessDressmaker processDressmaker) {
        return pantDetailDao.findByProcessDressmaker(processDressmaker);
    }

    public List<PantDetail> findByEmployee(Employee employee) {
        return pantDetailDao.findByEmployee(employee);
    }

    public List<PantDetail> findByEmployeePeriod(Employee employee, Date initDate, Date endDate){
        return pantDetailDao.findByEmployeePeriod(employee, initDate, endDate);
    }
}
